
//
// 130419 - AH - Created.
//

package org.japril.servlet.xmlservlet;

import java.io.IOException;

/**
 * <p>
 *   Interface for objects that handles a 'engine' processing request received
 *   in form of XML.
 * </p>
 * @author Arne Halvorsen (AH)
 */
public interface EngineHandler
{
  /**
   * <p>
   *   Performs by engaging engine as function of given XML. 
   * </p>
   * @param xml    XML.
   * @param parsed A object created from parsing the XML (done by 
   *               {@link XmlValidator}. May be {@code null}.
   * @param o      Object produced by
   *               {@link EnvironmentInitializer}, may be {@code null}.
   */
  //void perform(String xml, Object parsed, Object o) throws IOException;
  void perform(String xml, Object o) throws IOException;	
  
}
